#@layout()
#define main()
<link href="#(base)/fslayui/plugins/formSelect/formSelects.css" rel="stylesheet"/>
<div class="layui-card">
	<div class="layui-card-body">
		<form class="layui-form">
			<input type="hidden" name="id" value="#(id)">
			<div class="layui-form-item">
				<label class="layui-form-label">班级名称</label>
				<div class="layui-input-block">
					<p>#(aclass.class_name)</p>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">选择课程</label>
				<div class="layui-input-block">
					<select name="courseids" xm-select="courseids"  lay-verify="required" placeholder="请选择">
                        <option value="">请选择</option>
                        #for(course : courseList)
                            <option value="#(course.id)"  #(course.selected ??)>#(course.Kcname)</option>
                        #end
                    </select>
				</div>
			</div>
			<hr/>
			<div class="layui-form-item" style="text-align: center;">
				<button class="layui-btn" lay-submit="" lay-filter="save" url="#(base)/class/setUpCourse">保存</button>
				<button type="button" class="layui-btn layui-btn-primary" function="close">关闭</button>
			</div>
		</form>
	</div>
</div>
<script>
layui.use(['jquery', 'formSelects'], function(){
	var formSelects = layui.formSelects;
    formSelects.render('courseids');
});
</script>
#end